package com.imelite.qyh.enums;

public enum WechatEnum {
    QYH_WKKC("1000002", "iKpnjAVsTVIQAHIynTQJV4iIIkxF1i0fYEO7NFN3e9A"),//我的课程
    QYH_NPS("1000003","QdQZ6gsX8R8Ms_5SMFufxuoZ4ZetdlRWFGgze95EMoA")//NPS
    ;

    private String value;

    private String label;

    public String getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    private WechatEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

    public static WechatEnum getThisByValue(String value) {
        WechatEnum[] ae = WechatEnum.values();
        for (int i = 0; i < ae.length; i++) {
            if (ae[i].getValue().equals(value)) {
                return ae[i];
            }
        }
        return null;
    }

    public static String getLabelByValue(String value) {
        WechatEnum CategoryTypeEnum = getThisByValue(value);
        if (CategoryTypeEnum == null) {
            return "-" + value + "-";
        }
        return CategoryTypeEnum.getLabel();
    }
}
